package com.xj0927.cloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: xj0927
 * @Description:
 * @Date Created in 2020-10-30 9:43
 * @Modified By:
 */
@Component
@FeignClient(value = "CLOUD-PROVIDER-HYSTRIX-PAYMENT",fallback = OrderHystrixFallbackService.class)
public interface OrderHystrixService {
    @GetMapping("/payment/hystrix/ok/{id}")
    public String payment_ok(@PathVariable(value = "id") Integer id);

    @GetMapping("/payment/hystrix/outTime/{id}")
    public String payment_outTime(@PathVariable(value = "id") Integer id);
}
